from books.models import Publisher, Author, Book
from django.contrib import admin

class PublisherAdmin(admin.ModelAdmin):
	list_display = ('name', 'address', 'city', 'state_province', 'country', 'website')
	
class AuthorAdmin(admin.ModelAdmin):
	list_display = ('salutation', 'first_name', 'last_name', 'email', 'headshot')
	
class BookAdmin(admin.ModelAdmin):
	list_display = ('title', 'publisher', 'publication_date')

admin.site.register(Publisher, PublisherAdmin)
admin.site.register(Author, AuthorAdmin)
admin.site.register(Book, BookAdmin)

